package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "interviewschedule")
public class Interviewschedule {
    /**
     * 面试编号
     */
    @TableId(value = "Interview_number", type = IdType.AUTO)
    private Integer interviewNumber;

    /**
     * 招聘需求编号，关联CandidateResume表
     */
    @TableField(value = "Recruitment_Demand_Number")
    private Integer recruitmentDemandNumber;

    /**
     * 面试轮次（初筛、复审，终审）
     */
    @TableField(value = "Interview_round")
    private Integer interviewRound;

    /**
     * 计划开始时间
     */
    @TableField(value = "ThePlanBegins")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date theplanbegins;

    /**
     * 计划结束时间
     */
    @TableField(value = "The_program_ended")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date theProgramEnded;
    @TableField(exist = false)
    private Candidateresume candidateresume;
    @TableField(exist = false)
    private Recruitmentrequirement recruitmentrequirement;
    @TableField(exist = false)
    private Employee employee;
    @TableField(exist = false)
    private Department department;
    @TableField(exist = false)
    private List<Interviewrecord> interviewrecord;
    @TableField(exist = false)
    private List<Interviewinterviewers> interviewinterviewers;
    @TableField(exist = false)
    private Interviewinterviewers interviewinterviewerss;
    @TableField(exist = false)
    private List<Integer> interviewerIds;

}